package com.atguigu.gulimall.product.service;

import com.atguigu.gulimall.product.vo.Catelog2Vo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * ??Ʒ???????
 *
 * @author xr
 * @email sunlightcs@gmail.com
 * @date 2022-06-28 11:12:02
 */
public interface CategoryService extends IService<CategoryEntity> {

    /**
     * 测试分布式锁
     * @param id
     * @return
     */
//    CategoryEntity findById(Long id);

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    void removeMenuByIds(List<Long> asList);

    void updateDetail(CategoryEntity category);

    Long[] findCatelogPath(Long catelogId);

    List<CategoryEntity> getLevel1Categorys();

    Map<String,List<Catelog2Vo>> getCatalogJson() throws InterruptedException;

    Map<String,List<Catelog2Vo>> getCatalogJson2() throws InterruptedException;

}

